<?php


defined('MOODLE_INTERNAL') || die;

if ($ADMIN->fulltree) {

    // Basic Heading
    $name = 'theme_onestep/basicheading';
    $heading = get_string('basicheading', 'theme_onestep');
    $information = get_string('basicheadingdesc', 'theme_onestep');
    $setting = new admin_setting_heading($name, $heading, $information);
    $settings->add($setting);
	
	// Main colour setting
	$name = 'theme_onestep/maincolor';
	$title = get_string('maincolor','theme_onestep');
	$description = get_string('maincolordesc', 'theme_onestep');
	$default = '#f98012';
	$previewconfig = NULL;
	$setting = new admin_setting_configcolourpicker($name, $title, $description, $default, $previewconfig);
	$settings->add($setting);	
	
	// Logo file setting
	$name = 'theme_onestep/logo';
	$title = get_string('logo','theme_onestep');
	$description = get_string('logodesc', 'theme_onestep');
	$setting = new admin_setting_configtext($name, $title, $description, '', PARAM_URL);
	$settings->add($setting);	

	// Short Name setting
	$name = 'theme_onestep/shortname';
	$title = get_string('shortname','theme_onestep');
	$description = get_string('shortnamedesc', 'theme_onestep');
	$default = 1;
	$choices = array(1=>get_string('yes',''), 0=>get_string('no',''));
	$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
	$settings->add($setting);

	// General Alert setting
	$name = 'theme_onestep/generalalert';
	$title = get_string('generalalert','theme_onestep');
	$description = get_string('generalalertdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);
	
	// Custom CSS file
	$name = 'theme_onestep/customcss';
	$title = get_string('customcss','theme_onestep');
	$description = get_string('customcssdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtextarea($name, $title, $description, $default);
	$setting->set_updatedcallback('theme_reset_all_caches');
	$settings->add($setting);
	
	// Footer Options Heading
    $name = 'theme_onestep/footeroptheading';
    $heading = get_string('footeroptheading', 'theme_onestep');
    $information = get_string('footeroptdesc', 'theme_onestep');
    $setting = new admin_setting_heading($name, $heading, $information);
    $settings->add($setting);
	
	// Copyright setting
	$name = 'theme_onestep/copyright';
	$title = get_string('copyright','theme_onestep');
	$description = get_string('copyrightdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// CEOP
	$name = 'theme_onestep/ceop';
	$title = get_string('ceop','theme_onestep');
	$description = get_string('ceopdesc', 'theme_onestep');
	$default = '';
	$choices = array(''=>get_string('ceopnone','theme_onestep'), 'http://www.thinkuknow.org.au/site/report.asp'=>get_string('ceopaus','theme_onestep'), 'http://www.ceop.police.uk/report-abuse/'=>get_string('ceopuk','theme_onestep'));
	$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);
	$settings->add($setting);

	// Disclaimer setting
	$name = 'theme_onestep/disclaimer';
	$title = get_string('disclaimer','theme_onestep');
	$description = get_string('disclaimerdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_confightmleditor($name, $title, $description, $default);
	$settings->add($setting);	

	/*
	// Social Icons Heading
    $name = 'theme_onestep/socialiconsheading';
    $heading = get_string('socialiconsheading', 'theme_onestep');
    $information = get_string('socialiconsheadingdesc', 'theme_onestep');
    $setting = new admin_setting_heading($name, $heading, $information);
    $settings->add($setting);
	
	// Website url setting
	$name = 'theme_onestep/website';
	$title = get_string('website','theme_onestep');
	$description = get_string('websitedesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Facebook url setting
	$name = 'theme_onestep/facebook';
	$title = get_string('facebook','theme_onestep');
	$description = get_string('facebookdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Twitter url setting
	$name = 'theme_onestep/twitter';
	$title = get_string('twitter','theme_onestep');
	$description = get_string('twitterdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Google+ url setting
	$name = 'theme_onestep/googleplus';
	$title = get_string('googleplus','theme_onestep');
	$description = get_string('googleplusdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Flickr url setting
	$name = 'theme_onestep/flickr';
	$title = get_string('flickr','theme_onestep');
	$description = get_string('flickrdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Pinterest url setting
	$name = 'theme_onestep/pinterest';
	$title = get_string('pinterest','theme_onestep');
	$description = get_string('pinterestdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Instagram url setting
	$name = 'theme_onestep/instagram';
	$title = get_string('instagram','theme_onestep');
	$description = get_string('instagramdesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// LinkedIn url setting
	$name = 'theme_onestep/linkedin';
	$title = get_string('linkedin','theme_onestep');
	$description = get_string('linkedindesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);
	
	// Wikipedia url setting
	$name = 'theme_onestep/wikipedia';
	$title = get_string('wikipedia','theme_onestep');
	$description = get_string('wikipediadesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// YouTube url setting
	$name = 'theme_onestep/youtube';
	$title = get_string('youtube','theme_onestep');
	$description = get_string('youtubedesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Apple url setting
	$name = 'theme_onestep/apple';
	$title = get_string('apple','theme_onestep');
	$description = get_string('appledesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);

	// Android url setting
	$name = 'theme_onestep/android';
	$title = get_string('android','theme_onestep');
	$description = get_string('androiddesc', 'theme_onestep');
	$default = '';
	$setting = new admin_setting_configtext($name, $title, $description, $default);
	$settings->add($setting);
	*/

}

